package com.aotain.common.mongo;

/**
 * 
     *@Title:MongoDB 过滤字段
     *@Description:
     *@Author:Turk
     *@Since:2017年8月10日
     *@Version:1.1.0
 */
public class FilterItem {
	public FilterItem(String columnname,Object columnvalue,Condition cdt) {
		columnName = columnname;
		columnValue = columnvalue;
		condition = cdt;
	}
	
	public enum Condition {
		/**
		 * 等于
		 */
		EQ,
		/**
		 * 大于
		 */
		GR,
		/**
		 * 小于
		 */
		LE,
		/**
		 * 大于等于
		 */
		EQGR,
		/**
		 * 小于等于
		 */
		EQLE
	}
	
	private String columnName;
	private Object columnValue;
	private Condition condition;
	
	public String getColumnName() {
		return columnName;
	}
	
	public void setColumnName(String columnname) {
		columnName = columnname;
	}
	
	public Object getColumnValue() {
		return columnValue;
	}
	
	public void setColumnValue(Object columnvalue) {
		columnValue = columnvalue;
	}
	
	public Condition getCondition() {
		return condition;
	}
	
	public void setCondition(Condition cdt) {
		condition = cdt;
	}

}



    